﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace BrokerBase.Lib.Query
{
    public class PagingQuery
    {
        public PagingQuery()
        {
            Parameters = new List<QueryParameter>();
        }

        public string HQL { get; set; }

        public string TotalHQL { get; set; }

        public int FirstResult { get; set; }

        public int MaxResults { get; set; }

        public IList<QueryParameter> Parameters { get; set; }

        public void AddParameter(string name, string dataType, string value)
        {
            QueryParameter qp = new QueryParameter(name,dataType,value);

            Parameters.Add(qp);
        }
    }
}
